<div id="border">
  <div class="property_line_ccc"></div>
  <div style="background:url(<?=base_url();?>images/bg_propeties.jpg); width:980px; height:266px; color:#FFF; font-family:Arial, Helvetica, sans-serif;">
	
  <? include APPPATH."views/templates/common/property_search.php";?>
  <a class="property_ads" href="<?=site_url("property/p")?>"><div>Post ads Property</div></a>
  </div>
    <div class="property_line_red"></div>
    <div id="property">
    <h3><?=$Z_TRANS->value('title_search_result')?>: <? echo count($get_search->result_array());?></h3>
    <div style="border-bottom:#bbb 1px dotted; margin:8px 6px 6px 0;"></div>
  	<?php $str_path = str_replace("\\", "/", FCPATH);
	if(count($get_search->result_array())!="0"){
		foreach($get_search->result_array() as $row_result): 
		$filename =$str_path.$row_result['file_path'].$row_result['pic_name'];?>
    	<div class="ddt" align="center">
         <? if(isset($row_result['pic_name']) && file_exists ($filename)){?>	
        	<img src="<?=base_url();?><?=$row_result['file_path'];?><?=$row_result['pic_name'];?>" width="178" height="116" />
            <? } else{?>
            <div class="border_img_property"><img src="<?=base_url();?>images/nopic.gif" /></div>
             <? }?>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="38%"><?=$Z_TRANS->value('title_name')?></td>
                <td width="62%">: <?=substr($row_result['property_name'],0,18)."..";?></td>
              </tr>
              <tr>
                <td><?=$Z_TRANS->value('title_type')?></td>
                <td>: <?=$row_result['property_type']?></td>
              </tr>

              <tr>
                <td><?=$Z_TRANS->value('title_locations')?></td>
                <td>: <?=$row_result['location_name']?></td>
              </tr>              
              <tr>
                <td colspan="2"> <?=$Z_TRANS->value('title_floors')?> : <?=$row_result['no_of_floor'];?>&nbsp;&nbsp;<?=$Z_TRANS->value('title_baths')?> : <?=$row_result['no_of_bathroom'];?>&nbsp;&nbsp;<?=$Z_TRANS->value('title_beds')?> : <?=$row_result['no_of_bedrooms'];?></td>
              </tr>
              <tr>
                <td colspan="2"><?=$Z_TRANS->value('title_price')?> : <font color="#BD2031">$<?=$row_result['property_price'];?></font></td>
              </tr>
            </table>
            
        </div>
 	<?php endforeach;
	}else echo "Result not found, please try again later."
	?>
    <div class="pagination"><?php echo $this->pagination->create_links(); ?></div>	
    </div>
	<? include APPPATH."views/templates/common/property_ads.php";?>	  
	<? include APPPATH."views/templates/common/property_menu_bottom.php";?>		
  </div>   
  
    
</div>